            <div id="content"> <!-- Content begins here -->
                
                <?php 
                
                echo $this->element('admin/flash') ?>
                <div class="clear"></div>
                <h2>News Settings</h2><!--<a class="btn" href="<?php echo $html->url(array('controller'=>'news','action'=>'add')) ?>"><b>+ Add News</b></a>-->
                <div class="clear"></div>
                <br />
                <?php echo $form->create('Setting',array('url'=>'/admin/news/settings')) ?>

                    
                    
                        <h3 class="fl w150 lh30 ">Bulleting Category</h3>
                        <select name="data[Setting][bulletine]">
                            <option value="0">Select</option>
                        <?php if(count($categories)): 
                            foreach($categories as $key=>$i):
                        ?>
                        <option <?php if($key==$news_setting['bulletine']) echo 'selected="selected"' ?> value="<?php echo $key ?>"><?php echo $i ?></option>
                        
                        <?php 
                        endforeach;
                        endif; ?>
                        </select> 
                        <br clear="all" />
                        <h3 class="fl w150 lh30 ">Job Corner Category</h3>
                        <select name="data[Setting][job_corner]">
                            <option value="0">Select</option>
                        <?php if(count($categories)): 
                            foreach($categories as $key=>$i):
                        ?>
                        <option <?php if($key==$news_setting['job_corner']) echo 'selected="selected"' ?> value="<?php echo $key ?>"><?php echo $i ?></option>
                        
                        <?php 
                        endforeach;
                        endif; 
                        
                        
                        ?>
                        </select>
                        <br clear="all" />
                        <br clear="all" />
                        <h3 class="fl  lh30 ">Web Links <small>enter links seperated by comma</small></h3>
                            <textarea rows="5" cols="50" name="data[Setting][links]"><?php echo $news_setting['admin_links'] ?></textarea>
                            <br clear="all" />
                            <br clear="all" />
                            <label>Number of links to show</label>
                            <input name="data[Setting][numlinks]" value="<?php echo $news_setting['numlinks'] ?>" /><br />
                        <br clear="all" />
                        <br clear="all" />
                        <h3 class="fl  lh30 ">Prayer Time</h3>
                            <fieldset class="clear" style="width: 500px;"><legend>Fazar</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][fazar][start]" value="<?php echo $news_setting['ptime']['fazar']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][fazar][end]" value="<?php echo $news_setting['ptime']['fazar']['end'] ?>" />
                                </div>
                            </fieldset>
                            <fieldset class="clear" style="width: 500px;"><legend>Jahor</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][jahor][start]" value="<?php echo $news_setting['ptime']['jahor']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][jahor][end]" value="<?php echo $news_setting['ptime']['jahor']['end'] ?>" />
                                </div>
                            </fieldset>
                            <fieldset class="clear" style="width: 500px;"><legend>Asor</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][asor][start]" value="<?php echo $news_setting['ptime']['asor']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][asor][end]" value="<?php echo $news_setting['ptime']['asor']['end'] ?>" />
                                </div>
                            </fieldset>
                            <fieldset class="clear" style="width: 500px;"><legend>Magrib</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][magrib][start]" value="<?php echo $news_setting['ptime']['magrib']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][magrib][end]" value="<?php echo $news_setting['ptime']['magrib']['end'] ?>" />
                                </div>
                            </fieldset>
                            <fieldset class="clear" style="width: 500px;"><legend>Esha</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][esha][start]" value="<?php echo $news_setting['ptime']['esha']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][esha][end]" value="<?php echo $news_setting['ptime']['esha']['end'] ?>" />
                                </div>
                            </fieldset>
                            <fieldset class="clear" style="width: 500px;"><legend>Juma</legend>
                                <div class="fl">
                                    <label>Start</label>
                                    <input class="bangla" name="data[Setting][ptime][juma][start]" value="<?php echo $news_setting['ptime']['juma']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>End</label>
                                    <input class="bangla" name="data[Setting][ptime][juma][end]" value="<?php echo $news_setting['ptime']['juma']['end'] ?>" />
                                </div>
                            </fieldset>
                            
                        <br clear="all" />
                        <br clear="all" />
                        <h3 class="fl  lh30 ">Sunrise/Sunset</h3>
                            <fieldset class="clear" style="width: 500px;">
                                <div class="fl">
                                    <label>Sunrise</label>
                                    <input class="bangla" name="data[Setting][ptime][sunrise][start]" value="<?php echo $news_setting['ptime']['sunrise']['start'] ?>" /><br />
                                </div>
                                <div class="fl ml10">
                                    <label>Sunset</label>
                                    <input class="bangla" name="data[Setting][ptime][sunrise][end]" value="<?php echo $news_setting['ptime']['sunrise']['end'] ?>" />
                                </div>
                            </fieldset>
                        <br clear="all" />
                        <br clear="all" />
                        <!--<h3 class="fl w150 lh30 ">Cartoon Feature</h3>
                        <br clear="all" />
                        <a href="<?php echo $html->url('/admin/media/ajax') ?>" class="btn fancybox"><b>MEDIA</b></a>
                        <small class="fl clear mb10">Click on MEDIA to launch Media Manager. Double Click on image to remove.</small>
                        <div class="news_media cartoon_feature" style="width: 200px;">
                            <?php 
                                
                                if($cartoon['Media']){   
                                  $item=$cartoon['Media'];
                            ?>
                                    <a href="javascript:" ondblclick="remove_media(this);">
                                        <input class="media_id_<?php echo $item['id']  ?>" type="hidden" name="data[Media][Media][]" value="<?php echo $item['id']  ?>"/>
                                        <img src="<?php echo $html->url('/img/uploads/').$item['file_media'] ?>" alt="<?php echo $item['file_name'] ?>" width="100" height="100"/>
                                    </a>
                            <?php 
                             
                            }  ?>
                        </div>
                        -->
                        <div class="input no_margin_bottom">
                            <span class="btn"><input type="submit" value="SAVE SETTINGS" /></span>
                            
                        </div>
                        
                    
                <?php echo $form->end() ?>
                <br /><br />
                
                
                                

            
        </div> <!-- END Content -->
        